child_b_type = g_file_info_get_file_type (child_b_info);
if (child_a_type != child_b_type)
{
- g_ptr_array_add (modified, g_object_ref (child_a));
+ OstreeRepoDiffItem *diff_item = diff_item_new (child_a, child_a_info,
+ child_b, child_b_info, NULL, NULL);
+
+ g_ptr_array_add (modified, diff_item);
}
else
{
set -e
-echo "1..14"
+echo "1..15"
. libtest.sh
assert_file_has_content diff-test2-2 'A */oh-look-a-file$'
echo "ok diff cwd"
+cd ${test_tmpdir}/checkout-test2-4
+rm four
+mkdir four
+touch four/other
+$OSTREE diff test2 ./ > ${test_tmpdir}/diff-test2-2
+cd ${test_tmpdir}
+assert_file_has_content diff-test2-2 'M */four$'
+echo "ok diff file changing type"
+
cd ${test_tmpdir}/checkout-test2-4
echo afile > oh-look-a-file
cat > ${test_tmpdir}/ostree-commit-metadata <<EOF